<extend name="Index/index"/>

<block name="content">
    <!--<div class="view-product" style="margin-top: 50px">-->
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">{{$title}}</h6></div>
        </div>

        <a href="{{$prevUrl}}" class="layui-btn layui-btn-normal" style="margin: 20px 0 0 20px">返回上一页</a>

        <div class="layui-container" style="margin-top: 50px">
            <div class="layui-row" style="margin-top: 50px">
                <!--<div class="demoTable">-->
                    <!--<a href="{{$prevUrl}}" class="layui-btn layui-btn-normal">返回上一页</a>-->
                <!--</div>-->
                <div class="layui-col-md5 layui-col-md-offset1" style="margin-top: 50px">
                    <!--<a href="{{$prevUrl}}" class="layui-btn layui-btn-normal">返回上一页</a>-->
                    <form class="layui-form" action="{{:U('User/addDo')}}" method="post" enctype="multipart/form-data">
                        <div class="layui-form-item">
                            <label class="layui-form-label">用户</label>
                            <div class="layui-input-inline">
                                <input type="text" name="name" required  lay-verify="required"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">密码</label>
                            <div class="layui-input-inline">
                                <input type="password" name="pwd" required lay-verify="required" autocomplete="off" class="layui-input" >
                            </div>
                            <!--<div class="layui-form-mid layui-word-aux">默认密码6个1</div>-->
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">再次输入密码</label>
                            <div class="layui-input-inline">
                                <input type="password" name="repwd" required lay-verify="required" autocomplete="off" class="layui-input" >
                            </div>
                            <!--<div class="layui-form-mid layui-word-aux">默认密码6个1</div>-->
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit >立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
        <script>
            //Demo
            layui.use('form', function(){
                var form = layui.form;

                //监听提交
                form.on('submit(formDemo)', function(data){
                    layer.msg(JSON.stringify(data.field));
                    return false;
                });
            });
        </script>


    <!--</div>-->

</block>